package com.itheima.dao;

import com.itheima.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderAddressDao {
    //查询当天的预约信息
    OrderSetting findDate(String orderDate);
    //查询会员表
    Member findMember(String telephone);
    //查询地址表
    Address findAddress(String address);
    //查询订单表
    List<Order> findOrder(@Param("setmealId") Integer setmealId, @Param("memberId") Integer memberId, @Param("orderDate") String orderDate);
    //添加会员
    void addMember(Member member);
    //变更可预约人数
    void updateOrderSetting(OrderSetting orderSetting);
    //添加预约人数
    void addOrder(Order order);
    //添加中间表的信息
    void addOA(@Param("address1Id") Integer address1Id, @Param("orderId") Integer orderId);

    //查询医院地址
    List<String> findAddressAll();
    //根据id查询套餐信息
    Setmeal findById(Integer id);


}
